import PictureUpload from "@/pages/Picture/components/Pictureupload";
import {useState} from "react";

const AddPicture = () => {

  const [picture, setPicture] = useState<string>()
  const onSuccessUpload = (pictureInfo) => {
    setPicture({
      ...pictureInfo
    })
  }

  return (
    <>
      <div className='upload-file'>
        <PictureUpload
          picture={picture}
          onSuccessUpload={onSuccessUpload}
        />
      </div>
    </>
  )

}

export default AddPicture
